﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_AddVideo.aspx.cs" Inherits="Master_Admin_AddVideo" %>
<%@ Register assembly="DotNetTextBox" namespace="DotNetTextBox" tagprefix="DNTB" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="Css/Css.css" rel="stylesheet" type="text/css" />
    <script src="../Script/popup.js"></script>
    <link href="Css/Css.css" rel="stylesheet" type="text/css" />
    <link href="../Css/ColorPicker.css" rel="stylesheet" type="text/css" />   
    <link href="../Script/formValidator/style/validator.css" rel="stylesheet" type="text/css" />
    <script src="../Script/jquery.js" type="text/javascript"></script>
    <script src="../Script/ColorPicker.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../Css/Users.css" />
    <link href="../Script/formValidator/style/validator.css" rel="stylesheet" type="text/css" />
    <script src="../Script/formValidator/jquery_last.js" type="text/javascript"></script>
    <script src="../Script/formValidator/formValidator.js" type="text/javascript"></script>
    <script src="../Script/formValidator/formValidatorRegex.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function() {
        $.formValidator.initConfig({ alertmessage: false, formid: "Form1", onerror: function(msg) { alert(msg) } });
        $("#txtTitle").formValidator({ tipid: "txtTipTitle", onshow: "请输入视频标题", onfocus: "视频标题不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 25, empty: { leftempty: false, rightempty: false, emptyerror: "视频标题两边不能有空符号" }, onerror: "视频标题长度必须在1-25位,请确认" });
        $("#TextBox2").formValidator({ tipid: "TipTextBox2", onshow: "请选择视频", onfocus: "至少有一项视频地址不为空", oncorrect: "输入正确" }).inputValidator({  min: 1, max: 300, empty: { leftempty: false, rightempty: false, emptyerror: "视频地址两边不能有空符号" }, onerror: "视频地址不能为空,请确认" });
        });
    </script>
    <script type="text/javascript">
        $(document).ready(function() {
            $("#selVideoType ").attr("value","<%=model.VideoType %>");
        });
        function MusicTypeChange(va)
        {
            var btnMusicType=document.getElementById("btnMusicType");
            switch(va)
            {
                case "0":
                btnMusicType.style.display="block";
                break;
                case "1":
                btnMusicType.style.display="none";
                break;
            }
        }
    </script>
</head>
<body>
    <form id="Form1" runat="server">
    <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border" align="center">
        <tr>
            <td colspan="2" align="center" class="title">
                <strong>视 频 管 理</strong>
            </td>
        </tr>
        <tr class="tdbg">
            <td width="70" height="30">
                <strong>管理导航：</strong>
            </td>
            <td height="30">
                <a href="Admin_AddVideo.aspx">添加视频</a>&nbsp;|&nbsp;<a href="Admin_ManageVideo.aspx">所有视频</a>
            </td>
        </tr>
    </table>
      
    <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border" align=center>
            <tr>
                <td colspan="2" align="center" class="title">
                    <strong>
                        <asp:Label ID="lblAddVideoTip" runat="server" Text="添加视频" /></strong>
                </td>
            </tr>
            <tr class="tdbg">
                <td width="300" height="25" valign="middle">
                    <strong>视频标题：</strong>
                </td>
                <td height="25">
                    <asp:TextBox runat="server" ID="txtTitle" /><div id="txtTipTitle"></div>
                </td>
            </tr>
            <tr class="tdbg">
                <td width="300" height="25" valign="middle">
                    <strong>缩略图片：</strong>
                </td>
                <td height="25">
                    <asp:TextBox runat="server" ID="txtPic" />&nbsp;&nbsp;<input  Style="cursor: hand; background-color: #cccccc; height: 20px;"  type="button" id="Button7" value="上传" onclick="javascript:wy_addPhotoCat('../App/UploadVidoPic.aspx?inputobj=txtPic','上传图片',500,200)" />
                </td>
            </tr>          
            <tr class="tdbg">
                <td width="300" height="25" valign="middle">
                    <strong>地址一：</strong></td>
                <td height="25">
                    <asp:TextBox ID="TextBox2" runat="server" Width="192px"></asp:TextBox>&nbsp;
                    <input  Style="cursor: hand; background-color: #cccccc; height: 20px;"  type="button" id="Button2" value="从已有的中选择" onclick="javascript:wy_addPhotoCat('../App/SelectVideoList.aspx?inputobj=TextBox2','添加视频',500,200)" />
                    
                    <div id="TipTextBox2"></div>
                </td>
            </tr>  
            <tr class="tdbg">
                <td width="300" height="25" valign="middle">
                    <strong>地址二：</strong></td>
                <td height="25">
                    <asp:TextBox ID="TextBox3" runat="server" Width="192px"></asp:TextBox>&nbsp;
                    <input  Style="cursor: hand; background-color: #cccccc; height: 20px;"  type="button" id="Button3" value="从已有的中选择" onclick="javascript:wy_addPhotoCat('../App/SelectVideoList.aspx?inputobj=TextBox3','添加视频',500,200)" />

                </td>
            </tr>  
            <tr class="tdbg">
                <td width="300" height="25" valign="middle">
                    <strong>地址三：</strong></td>
                <td height="25">
                    <asp:TextBox ID="TextBox4" runat="server" Width="192px"></asp:TextBox>&nbsp;
                    <input  Style="cursor: hand; background-color: #cccccc; height: 20px;"  type="button" id="Button4" value="从已有的中选择" onclick="javascript:wy_addPhotoCat('../App/SelectVideoList.aspx?inputobj=TextBox4','添加视频',500,200)" />
                    
      
                </td>
            </tr>  
            <tr class="tdbg">
                <td width="300" height="25" valign="middle">
                    <strong>地址四：</strong></td>
                <td height="25">
                    <asp:TextBox ID="TextBox5" runat="server" Width="192px"></asp:TextBox>&nbsp;
                    <input  Style="cursor: hand; background-color: #cccccc; height: 20px;"  type="button" id="Button5" value="从已有的中选择" onclick="javascript:wy_addPhotoCat('../App/SelectVideoList.aspx?inputobj=TextBox5','添加视频',500,200)" />
                    
     
                </td>
            </tr>  
            <tr class="tdbg">
                <td width="300" height="25" valign="middle">
                    <strong>地址五：</strong></td>
                <td height="25">
                    <asp:TextBox ID="TextBox6" runat="server" Width="192px"></asp:TextBox>&nbsp;
                    <input  Style="cursor: hand; background-color: #cccccc; height: 20px;"  type="button" id="Button6" value="从已有的中选择" onclick="javascript:wy_addPhotoCat('../App/SelectVideoList.aspx?inputobj=TextBox6','添加视频',500,200)" />
                    
               
                </td>
            </tr>  
            <tr class="tdbg">
                <td width="300" height="25" valign="middle">
                    <strong>视频类型：</strong></td>
                <td height="25">
                    <select id="selVideoType" name="selVideoType">
                        <option value="国外电影">国外电影</option>
                        <option value="港台电影">港台电影</option>
                        <option value="卡通动画">卡通动画</option>
                        <option value="其它">其它</option>
                        <option value="国产影片">国产影片</option>
                        <option value="欧美电影">欧美电影</option>
                        <option value="用户视频">用户视频</option>
                        <option value="百家讲坛">百家讲坛</option>
                        <option value="连续剧">连续剧</option>
                    </select>
               
                </td>
            </tr> 
            <tr class="tdbg">
                <td width="300" height="25" valign="middle">
                    <strong>视频描述：</strong></td>
                <td height="25">
                    <DNTB:WebEditor ID="txtDescription" runat="server" UploadConfig="my.config" MenuConfig="my.config"  />
                    
                </td>
            </tr>  
            <tr class="tdbg">
                <td height="40" colspan="2" align="center">
                    <input name="Action" type="hidden" id="Action" value="SaveModify">
                    <asp:Button  ID="btnSubmit" runat="server" 
                        Style="cursor: hand; background-color: #cccccc; height: 20px;" 
                        Text="  确     定  " onclick="btnSubmit_Click" />&nbsp;
                       <asp:Button  ID="Button1" runat="server" 
                        Style="cursor: hand; background-color: #cccccc; height: 20px;" 
                        Text="  修     改  " Visible="false" onclick="Button1_Click" />
                    
                    
                    
                </td>
            </tr>
        </table>  
    </form>
</body>
</html>

